首页> 外文OA文献 >Implementing GraphQL as a Query Language for Deductive Databases in SWI-Prolog Using DCGs, Quasi Quotations, and Dicts
【2h】

Implementing GraphQL as a Query Language for Deductive Databases in SWI-Prolog Using DCGs, Quasi Quotations, and Dicts

机译:实现GraphQL作为演绎数据库的查询语言   sWI-prolog使用DCG,准语录和Dicts

代理获取
本网站仅为用户提供外文OA文献查询和代理获取服务,本网站没有原文。下单后我们将采用程序或人工为您竭诚获取高质量的原文,但由于OA文献来源多样且变更频繁,仍可能出现获取不到、文献不完整或与标题不符等情况,如果获取不到我们将提供退款服务。请知悉。

摘要

The methods to access large relational databases in a distributed system arewell established: the relational query language SQL often serves as a languagefor data access and manipulation, and in addition public interfaces are exposedusing communication protocols like REST. Similarly to REST, GraphQL is thequery protocol of an application layer developed by Facebook. It provides aunified interface between the client and the server for data fetching andmanipulation. Using GraphQL's type system, it is possible to specify datahandling of various sources and to combine, e.g., relational with NoSQLdatabases. In contrast to REST, GraphQL provides a single API endpoint andsupports flexible queries over linked data. GraphQL can also be used as an interface for deductive databases. In thispaper, we give an introduction of GraphQL and a comparison to REST. Usinglanguage features recently added to SWI-Prolog 7, we have developed the Prologlibrary GraphQL.pl, which implements the GraphQL type system and query syntaxas a domain-specific language with the help of definite clause grammars (DCG),quasi quotations, and dicts. Using our library, the type system created for adeductive database can be validated, while the query system provides a unifiedinterface for data access and introspection.
机译:很好地建立了在分布式系统中访问大型关系数据库的方法:关系查询语言SQL通常用作数据访问和操纵的语言,此外,使用诸如REST之类的通信协议公开公共接口。类似于REST,GraphQL是Facebook开发的应用程序层的查询协议。它提供了客户端和服务器之间的统一接口,用于数据获取和操作。使用GraphQL的类型系统,可以指定各种来源的数据处理并将其与NoSQL数据库相结合。与REST相比,GraphQL提供了单个API端点并支持对链接数据的灵活查询。 GraphQL也可用作演绎数据库的接口。在本文中,我们对GraphQL进行了介绍,并与REST进行了比较。使用最近添加到SWI-Prolog 7中的语言功能,我们开发了Prologlibrary GraphQL.pl,它通过定句语法(DCG),准引号和格言来实现GraphQL类型系统和查询语法为特定于域的语言。使用我们的库,可以验证为演绎数据库创建的类型系统,而查询系统为数据访问和自省提供了统一的接口。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
代理获取

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号